#include <string>
#include <sstream>

template < typename T > std::string to_string( const T& n ) {
    std::ostringstream stm ;
    stm << n;
    return stm.str();
}

std::string toSQLString(int32_t value) {
    return to_string(value);
}

std::string toSQLString(int64_t value) {
    return to_string(value);
}

std::string toSQLString(bool value) {
    return to_string(value);
}

std::string toSQLString(string value) {
    return "'" + value + "'";
}
